<%@ page language="java" contentType="text/html; charset=windows-1255"
    pageEncoding="windows-1255" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<script src="JS/adminScripts.js" type="text/javascript"></script>
</head>
<body>
<%@ page import="cs236369.hw5.InitListener" %>
<%
	String admin = (String)session.getAttribute("admin");
	if(admin == null) { // user is not an admin
		response.sendRedirect(request.getContextPath() + InitListener.welcomePage);
		return;
	}
%>
<div id="navigation">
	<ul> 
		<li><a href="admin/manageUsers.jsp" class="mainadmin">Manage users</a></li>
		<li><a href="admin/manageTeams.jsp" class="mainadmin">Manage teams</a></li>
		<li><a href="admin/manageTasks.jsp" class="mainadmin">Manage rescue missions</a></li>
		<li><a href="admin/manageSkills.jsp" class="mainadmin">Manage skills</a></li>
	</ul>
</div>
<div id="admincontent">
<p class="subtitle">Administrator options</p>
</div>

</body>
<script type="text/javascript">
	$(document).ready(function() {
		$(".mainadmin").click(function(e) {
			e.preventDefault();
			loadAdminContent($(this).attr("href"));
		});
	});
</script>
</html>